<?php 
/* SVN FILE: $Id$ */
/* StudentDetail Test cases generated on: 2009-11-20 06:18:47 : 1258697927*/
App::import('Model', 'StudentDetail');

class StudentDetailTestCase extends CakeTestCase {
	var $StudentDetail = null;
	var $fixtures = array('app.student_detail', 'app.student', 'app.student_minority', 'app.student_province');

	function startTest() {
		$this->StudentDetail =& ClassRegistry::init('StudentDetail');
	}

	function testStudentDetailInstance() {
		$this->assertTrue(is_a($this->StudentDetail, 'StudentDetail'));
	}

	function testStudentDetailFind() {
		$this->StudentDetail->recursive = -1;
		$results = $this->StudentDetail->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('StudentDetail' => array(
			'id'  => 1,
			'student_id'  => 1,
			'gender'  => 'Lo',
			'birthday'  => 'Lorem ip',
			'political'  => 'Lorem ipsum do',
			'student_minority_id'  => 1,
			'student_province_id'  => 1,
			'class'  => 'Lorem ',
			'academic'  => 'Lorem ipsum dolor sit amet',
			'degree'  => 'Lorem ipsum do',
			'email'  => 'Lorem ipsum dolor sit amet',
			'phone'  => 'Lorem ips',
			'created'  => '2009-11-20 06:18:47',
			'modified'  => '2009-11-20 06:18:47'
		));
		$this->assertEqual($results, $expected);
	}
}
?>